package at.fhhgb.mc.Aufgabe01;

public class DLNode {
	/** Ref to the next elem in the list, or null if it is the last */
	public DLNode next;
	/** Ref to the prev elem in the list , or null if it is the first */
	public DLNode prev;
	/** Holds the actual data */
	public int val;

	public DLNode() {
		this(0, null, null);
	}

	public DLNode(int val) {
		this(val, null, null);
	}

	public DLNode(int val, DLNode next, DLNode prev) {
		this.val = val;
		this.next = next;
		this.prev = prev;
	}
}
